package com.example.sm.mycook.beans;

import java.util.List;

/**
 * Created by Administrator on 2016/12/6.
 */
public class HomeVpBean {

    /**
     * hasError : false
     * errorCode : 200
     * statusCode : 200
     * errorMessage :
     * data : {"carousel":[{"title":"冬季进补","picUrl":"http://img.i-kitchen.cn/upload/8352c288-bece-4b5c-a42c-621253e4a584.jpg","enabled":1,"sortIndex":1,"action":{"type":2,"data":{"type":1,"target":"http://wmall.wochu.cn/h5/activity/html/tonicWinter2.html"}}},{"title":"西湖牛肉羹","picUrl":"http://img.i-kitchen.cn/upload/210f9624-ab7b-4e11-ae25-3cb29b13165d.jpg","enabled":1,"sortIndex":2,"action":{"type":2,"data":{"type":2,"target":"bd9550be-da08-4760-b3d2-6600fa52eed7"}}},{"title":"供港蔬菜","picUrl":"http://img.i-kitchen.cn/upload/44173efa-d024-44b1-bbe3-04f7d95321de.jpg","enabled":1,"sortIndex":3,"action":{"type":2,"data":{"type":1,"target":"http://wmall.wochu.cn/h5/activity/html/vegetables.html?v=1.2"}}},{"title":"本周新菜","picUrl":"http://img.i-kitchen.cn/upload/5c728369-fc8a-4092-b424-49ff7ba6446d.jpg","enabled":1,"sortIndex":5,"action":{"type":2,"data":{"type":1,"target":"http://wmall.wochu.cn/h5/activity/html/newDishe.html?v=1.2"}}}],"recommendedContent":[{"items":[{"imgUrl":"http://img.i-kitchen.cn/upload/99b89607-cb56-48a7-a509-f076204060d5.jpg","type":"8","source":"","pos":1,"$$hashKey":"object:323"},{"imgUrl":"http://img.i-kitchen.cn/upload/9562141a-1783-40e3-8eab-0c18f47b8c57.jpg","type":"5","source":"http://wmall.wochu.cn/h5/groupbuy/groupList.html?","pos":2,"$$hashKey":"object:324"},{"imgUrl":"http://img.i-kitchen.cn/upload/f6eff771-b105-4bbd-93af-646ae46403f8.jpg","type":"12","source":"","pos":3,"$$hashKey":"object:325"},{"imgUrl":"http://img.i-kitchen.cn/upload/18c0b3b3-c8d3-4a48-9b6b-45f1bbb29459.jpg","type":"11","source":"","pos":4,"$$hashKey":"object:326"}],"templateType":"8","sortIndex":1,"$$hashKey":"object:171"}]}
     */

    private boolean hasError;
    private String errorCode;
    private String statusCode;
    private String errorMessage;
    private DataBean data;

    public boolean isHasError() {
        return hasError;
    }

    public void setHasError(boolean hasError) {
        this.hasError = hasError;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * title : 冬季进补
         * picUrl : http://img.i-kitchen.cn/upload/8352c288-bece-4b5c-a42c-621253e4a584.jpg
         * enabled : 1
         * sortIndex : 1
         * action : {"type":2,"data":{"type":1,"target":"http://wmall.wochu.cn/h5/activity/html/tonicWinter2.html"}}
         */

        private List<CarouselBean> carousel;
        /**
         * items : [{"imgUrl":"http://img.i-kitchen.cn/upload/99b89607-cb56-48a7-a509-f076204060d5.jpg","type":"8","source":"","pos":1,"$$hashKey":"object:323"},{"imgUrl":"http://img.i-kitchen.cn/upload/9562141a-1783-40e3-8eab-0c18f47b8c57.jpg","type":"5","source":"http://wmall.wochu.cn/h5/groupbuy/groupList.html?","pos":2,"$$hashKey":"object:324"},{"imgUrl":"http://img.i-kitchen.cn/upload/f6eff771-b105-4bbd-93af-646ae46403f8.jpg","type":"12","source":"","pos":3,"$$hashKey":"object:325"},{"imgUrl":"http://img.i-kitchen.cn/upload/18c0b3b3-c8d3-4a48-9b6b-45f1bbb29459.jpg","type":"11","source":"","pos":4,"$$hashKey":"object:326"}]
         * templateType : 8
         * sortIndex : 1
         * $$hashKey : object:171
         */

        private List<RecommendedContentBean> recommendedContent;

        public List<CarouselBean> getCarousel() {
            return carousel;
        }

        public void setCarousel(List<CarouselBean> carousel) {
            this.carousel = carousel;
        }

        public List<RecommendedContentBean> getRecommendedContent() {
            return recommendedContent;
        }

        public void setRecommendedContent(List<RecommendedContentBean> recommendedContent) {
            this.recommendedContent = recommendedContent;
        }

        public static class CarouselBean {
            private String title;
            private String picUrl;
            private int enabled;
            private int sortIndex;
            /**
             * type : 2
             * data : {"type":1,"target":"http://wmall.wochu.cn/h5/activity/html/tonicWinter2.html"}
             */

            private ActionBean action;

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getPicUrl() {
                return picUrl;
            }

            public void setPicUrl(String picUrl) {
                this.picUrl = picUrl;
            }

            public int getEnabled() {
                return enabled;
            }

            public void setEnabled(int enabled) {
                this.enabled = enabled;
            }

            public int getSortIndex() {
                return sortIndex;
            }

            public void setSortIndex(int sortIndex) {
                this.sortIndex = sortIndex;
            }

            public ActionBean getAction() {
                return action;
            }

            public void setAction(ActionBean action) {
                this.action = action;
            }

            public static class ActionBean {
                private int type;

                public int getType() {
                    return type;
                }

                public void setType(int type) {
                    this.type = type;
                }
            }
        }

        public static class RecommendedContentBean {
            private String templateType;
            private int sortIndex;
            private String $$hashKey;
            /**
             * imgUrl : http://img.i-kitchen.cn/upload/99b89607-cb56-48a7-a509-f076204060d5.jpg
             * type : 8
             * source :
             * pos : 1
             * $$hashKey : object:323
             */

            private List<ItemsBean> items;

            public String getTemplateType() {
                return templateType;
            }

            public void setTemplateType(String templateType) {
                this.templateType = templateType;
            }

            public int getSortIndex() {
                return sortIndex;
            }

            public void setSortIndex(int sortIndex) {
                this.sortIndex = sortIndex;
            }

            public String get$$hashKey() {
                return $$hashKey;
            }

            public void set$$hashKey(String $$hashKey) {
                this.$$hashKey = $$hashKey;
            }

            public List<ItemsBean> getItems() {
                return items;
            }

            public void setItems(List<ItemsBean> items) {
                this.items = items;
            }

            public static class ItemsBean {
                private String imgUrl;
                private String type;
                private String source;
                private int pos;
                private String $$hashKey;

                public String getImgUrl() {
                    return imgUrl;
                }

                public void setImgUrl(String imgUrl) {
                    this.imgUrl = imgUrl;
                }

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public String getSource() {
                    return source;
                }

                public void setSource(String source) {
                    this.source = source;
                }

                public int getPos() {
                    return pos;
                }

                public void setPos(int pos) {
                    this.pos = pos;
                }

                public String get$$hashKey() {
                    return $$hashKey;
                }

                public void set$$hashKey(String $$hashKey) {
                    this.$$hashKey = $$hashKey;
                }
            }
        }
    }
}
